import request from "@/utils/request";
export function add(data) {
  return request({
    url: "/sinohis/pension/profession/elderlyfile/ef/su/familyhistory/"+data.elderlyCode,
    method: 'post',
    data

  });

}
export function search(params) {
  return request({
    url: "/sinohis/pension/profession/elderlyfile/query/familyhistory/"+params.elderlyCode,
    method: 'get',
    params

  });

}
export function del(params) {
  return request({
    url: "/sinohis/pension/profession/elderlyfile/ef/su/familyhistory/"+params.elderlyCode+'/'+params.diseases+'/'+params.familyRelationship,
    method: 'DELETE',
    params

  });

}
